package com.heima.controller.v1;

import com.heima.article.dto.ArticleDto;
import com.heima.service.ArticleUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用于远程调用
 */
@RestController
public class ArticleContentUp2MinioController {

    @Autowired
    private ArticleUploadService uploadService;

    //上传文章详情html至minio
    @PostMapping("/api/v1/up2Minio")
    public void upload2Minio(ArticleDto dto) {
        uploadService.upLoadArticle(dto);
    }
}
